package com.gdth.core.entity;

import com.gdth.core.annotation.table.Column;
import com.gdth.core.annotation.table.Id;
import com.gdth.core.annotation.table.Table;

@Table(name="teacher")
public class teacher{
	
	@Id(column="id")
	@Column(name="id")
	private int id;
	
	@Column(name="name", type="TEXT", length=20)
	private String name;
	
	@Column(name="age", type="INTEGER")
	private int age;
	
	@Column(name="sex")
	private String sex;
	
	public teacher(){
		
	}
	
	public void setId(int id){
		this.id = id;
	}
	public int getId(){
		return this.id;
	}
	
	public void setName(String name){
		this.name = name;
	}
	public String getName(){
		return this.name;
	}
	
	public void setAge(int age){
		this.age = age;
	}
	public int getAge(){
		return this.age;
	}
	
	public void setSex(String sex){
		this.sex = sex;
	}
	public String getSex(){
		return this.sex;
	}
	
	@Column(name="title")
	private String title;
}
